package com.itheima.service.imp;

import com.alibaba.dubbo.config.annotation.Service;
import com.itheima.dao.RoleDao_lzl;
import com.itheima.pojo.Role;
import com.itheima.service.RoleService_lzl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service(interfaceClass = RoleService_lzl.class)
@Transactional
public class RoleServiceImpl_lzl implements RoleService_lzl {
    @Autowired
    private RoleDao_lzl roleDao_lzl;
    /*
    * 查询所有角色
    * */
    @Override
    public List<Role> findAll() {
        return  roleDao_lzl.findAll();
    }

}
